#include <stdlib.h>
#include <string.h>
#include "iobot.h"
#include "turtle.h"
#include "syscall.h"

extern iobot_t* cmdbot;
extern iobot_t* dirbot;
extern iobot_t* infobot;

extern char* input;
extern char* command;
extern char* param;
extern char* working_dir;

int turtle_create()
{
	input = (char*)malloc(sizeof(char) * 1024);
	command = (char*)malloc(sizeof(char) * 1024);
	param = (char*)malloc(sizeof(char) * 1024);
	working_dir = (char*)malloc(sizeof(char) * 1024);

	cmdbot = iobot_create( "Turtle - Command Line",    0,  0, 50, 60);
	cmdbot->focused = 1;
	dirbot = iobot_create( "Turtle - Directory View", 50,  0, 30, 51);
	infobot = iobot_create("Turtle - System Info",    50, 51, 30, 9);

	return 1;
}
